var fs = require("fs");
var _ = require("lodash");

let fileNameC = "core";
let outputFileName = "core_extra.json";

let mainData = JSON.parse(fs.readFileSync(`${fileNameC}.json`).toString());

let outputData = [];
_.map(mainData, (e) => {
    let id = e.id;
    outputData.push({
        "id": id,
        "add_date": 1637740800,
    })
});

fs.writeFileSync(outputFileName, JSON.stringify(outputData));
